//
//  UIColor+Extension.swift
//  sanwuWeibo
//
//  Created by 王先强 on 15/12/7.
//  Copyright © 2015年 王先强. All rights reserved.
//

import UIKit

extension UIColor {
    
    func WQRadomColor () -> UIColor {
        var WQRandomColor:UIColor {
            var color1:CGFloat {return (CGFloat(arc4random() % 255) / 255.0)}
            let color:UIColor = UIColor(red: color1, green: color1, blue: color1, alpha: 1)
            return color
        }
        return WQRandomColor
    }
    
    var WQRandomColor:UIColor {
        var color1:CGFloat {return (CGFloat(arc4random() % 255) / 255.0)}
        let color:UIColor = UIColor(red: color1, green: color1, blue: color1, alpha: 1)
        return color
    }
    
}

